package tankgame3;

import javax.swing.*;

public class HspTankGame03 extends JFrame {
    MyPanel my=null;

    public static void main(String[] args) {
                 HspTankGame03 hspTankGame02 = new HspTankGame03();




//        Runtime runtime = Runtime.getRuntime();;
//        int i = runtime.availableProcessors();;
//        System.out.println(i);//四个cpu
    }

    public HspTankGame03()  {
        my=new MyPanel();
        new Thread(my).start();

        this.add(my);
        this.setSize(800,500);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        this.addKeyListener(my);

    }
}
